package com.pattern.design.designpattern.Watcher;

import java.util.Observable;
import java.util.Observer;

/**
 * author:harisucici on 2018/10/10 11:01
 * email:harisucici@gmail.com
 * name:
 * todo:
 */
public class BeWacher extends Observable {
    /**
     * Publish sth.
     *
     * @param s the s
     */
    public void publishSth(String s){
        setChanged();
        notifyObservers(s);
    }
}
